package com.gaofans.nrpc.common.compress;

import java.io.IOException;

/**
 * 数据解压
 * @author GaoFans
 */
public interface Decompressor {
    /**
     * 获取编码类型
     * @return
     */
    byte getMessageEncoding();

    /**
     * 解压
     * @param in
     * @return
     * @throws IOException
     */
    byte[] decompress(byte[] in) throws IOException;
}